module.exports = {
  publicPath: process.env.NODE_ENV !== 'production' ? './' : '/',
  outputDir: 'qk-main',
  assetsDir: 'static',
  filenameHashing: true,
  productionSourceMap: false,
  devServer: {
    port: 9900,
    hot: true,
    open: true,
    disableHostCheck: true,
    overlay: {
      warnings: false,
      errors: true,
    },
    headers: {
      'Access-Control-Allow-Origin': '*',
    },
  },
  lintOnSave: true,
};
